package com.css.dzj.dzjfxyj.modules.acquier.scheduler;

import com.css.dzj.dzjfxyj.modules.acquier.service.AcquierService;
import com.css.dzj.dzjfxyj.modules.acquier.vo.RiskWaringInfoVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class FxyjScheduler {

    @Autowired
    private AcquierService acquierService;

    @Scheduled(cron = "0 0 0 */2 * ?")
    public void pushTask() {
        List<RiskWaringInfoVo> pushedTasks = acquierService.findPushedTasks();
        System.out.println("风险预警反馈成功-----" + pushedTasks.toString());
    }
}
